import 'package:flutter_deer/generated/json/base/json_convert_content.dart';
import 'package:flutter_deer/index/models/play_entity.dart';
import 'package:azlistview/azlistview.dart';

PlayItems $PlayItemsFromJson(Map<String, dynamic> json) {
	final PlayItems playItems = PlayItems();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		playItems.id = id;
	}
  final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		playItems.name = name;
	}
  final String? footballTeamOneName = jsonConvert.convert<String>(json['footballTeamOneName']);
	if (footballTeamOneName != null) {
		playItems.footballTeamOneName = footballTeamOneName;
	}
  final String? footballTeamOneImage = jsonConvert.convert<String>(json['footballTeamOneImage']);
	if (footballTeamOneImage != null) {
		playItems.footballTeamOneImage = footballTeamOneImage;
	}
  final String? footballTeamTwoName = jsonConvert.convert<String>(json['footballTeamTwoName']);
	if (footballTeamTwoName != null) {
		playItems.footballTeamTwoName = footballTeamTwoName;
	}
  final String? footballTeamTwoImage = jsonConvert.convert<String>(json['footballTeamTwoImage']);
	if (footballTeamTwoImage != null) {
		playItems.footballTeamTwoImage = footballTeamTwoImage;
	}
  final String? playTime = jsonConvert.convert<String>(json['playTime']);
	if (playTime != null) {
		playItems.playTime = playTime;
	}
  return playItems;
}

Map<String, dynamic> $PlayItemsToJson(PlayItems entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
  data['name'] = entity.name;
  data['footballTeamOneName'] = entity.footballTeamOneName;
  data['footballTeamOneImage'] = entity.footballTeamOneImage;
  data['footballTeamTwoName'] = entity.footballTeamTwoName;
  data['footballTeamTwoImage'] = entity.footballTeamTwoImage;
  data['playTime'] = entity.playTime;
  return data;
}

PlayRatioItems $PlayRatioItemsFromJson(Map<String, dynamic> json) {
  final PlayRatioItems playRatioItems = PlayRatioItems();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		playRatioItems.id = id;
	}
  final int? playId = jsonConvert.convert<int>(json['playId']);
	if (playId != null) {
		playRatioItems.playId = playId;
	}
  final String? score = jsonConvert.convert<String>(json['score']);
	if (score != null) {
		playRatioItems.score = score;
	}
  final String? odds = jsonConvert.convert<String>(json['odds']);
	if (odds != null) {
		playRatioItems.odds = odds;
	}
  return playRatioItems;
}

Map<String, dynamic> $PlayRatioItemsToJson(PlayRatioItems entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
  data['playId'] = entity.playId;
  data['score'] = entity.score;
  data['odds'] = entity.odds;
  return data;
}